package com.soft.javase.day05.enums;

/**
 * @author yzg
 * @desc TODO
 * @date 2025/4/22
 */
public class Test {
    public static void open(DocumentType documentType) {
        switch (documentType) {
            case WORD:
                System.out.println("正在打开 Word 文档...");
                break;
            case PPT:
                System.out.println("正在打开 PowerPoint 文件...");
                break;
            case EXCEL:
                System.out.println("正在打开 Excel 表格...");
                break;
            case XMIND:
                System.out.println("正在打开 XMind 思维导图...");
                break;
            default:
                System.out.println("未知文档类型");
        }
    }

    public static void main(String[] args) {
        open(DocumentType.WORD);
        open(DocumentType.PPT);
        open(DocumentType.EXCEL);
        open(DocumentType.XMIND);
    }
}